#! /usr/bin/python


def GetUniqueWords(text):
  uniqueWords = dict()
  text = text.replace('.',' .').replace(';',' ;').replace('!',' !').replace('?',' ?').replace(',',' ,').replace('\"','').replace('--',' -- ')
  allWords = text.split()

  for words in allWords:
    if uniqueWords.has_key(words):
      uniqueWords[words] +=1
    else:
      uniqueWords[words] = 1

  return uniqueWords
      
def tenMostCommon(words):
  #values=words.
  #keys=values[]
  pass

def main():
  # Open the file, read it into memory as a single string.
  with open('alice_in_wonderland.txt') as alice_file:
    alice_text = alice_file.read()

  print 'Unique words:', GetUniqueWords(alice_text).__len__()


if __name__ == '__main__':
  main()
